package com.wordplat.quickstart.xutils.http.app;

import java.lang.reflect.Type;

/**
 * Created by wyouflf on 15/8/4.
 *
 * @param <ResponseDataType> 支持String, byte[], JSONObject, JSONArray, InputStream
 * @since 2021-05-09
 */
public interface ResponseParser<ResponseDataType> extends RequestInterceptListener {
    /**
     * parse
     *
     * @param resultType
     * @param resultClass
     * @param result
     * @return Object
     * @throws Throwable
     */
    Object parse(Type resultType, Class<?> resultClass, ResponseDataType result) throws Throwable;
}
